package com.family.business.custom.service;

import java.util.Collection;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.family.business.custom.ajax.CustomJson;
import com.family.business.custom.dto.CustomDto;

@Transactional
public interface CustomIService {

	CustomDto getCustom(Long id);
	
	CustomJson getCustomJson(Long id);
	
	void save(CustomDto custom);
	
	void saveOrUpdate(CustomDto custom);
	
	void delete(CustomDto custom);
	
	void deleteByCollection(Collection<CustomDto> collection);
	
	void deleteByPK(Long id);
	
	List<CustomJson> listCustomByName(String cusName);
}
